package com.dymall.item.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.dymall.common.domain.PageDTO;
import com.dymall.common.domain.PageQuery;
import com.dymall.item.domain.dto.ItemDTO;
import com.dymall.item.domain.dto.OrderDetailDTO;
import com.dymall.item.domain.po.Item;

import java.util.Collection;
import java.util.List;

public interface ItemService extends IService<Item> {
    List<ItemDTO> queryItemByIds(Collection<Long> ids);

    void deductStock(List<OrderDetailDTO> items);

    PageDTO<ItemDTO> queryItemByPage(PageQuery pageQuery);

    ItemDTO queryItemById(Long id);
}
